﻿Public Class HtmlEditorControl
    Inherits System.Web.UI.UserControl

    Public Property Height() As Unit
        Get
            Return ckeEditor.Height
        End Get
        Set(ByVal value As Unit)
            ckeEditor.Height = value
        End Set
    End Property


    Public Property Text() As String
        Get
            Return ckeEditor.Text
        End Get
        Set(value As String)
            ckeEditor.Text = value
        End Set
    End Property

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load                
        Try
            Me.ckeEditor.BasePath = ConfigurationManager.AppSettings("CKEditor")
            'Me.ckeEditor.FilebrowserBrowseUrl = ResolveUrl("~/ckfinder/ckfinder.html?type=Files")
            'Me.ckeEditor.FilebrowserUploadUrl = ResolveUrl("~/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files")            
            'Me.ckeEditor.FilebrowserImageBrowseUrl = ResolveUrl("~/ckfinder/ckfinder.html?type=Images")
            'Me.ckeEditor.FilebrowserImageUploadUrl = ResolveUrl("~/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files")
            'Me.ckeEditor.FilebrowserFlashBrowseUrl = ResolveUrl("~/ckfinder/ckfinder.html?type=Flash")
            'Me.ckeEditor.FilebrowserFlashUploadUrl = ResolveUrl("~/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash")
        Catch ex As Exception
            Server.Transfer("~/Pages/Error.aspx")
        End Try
    End Sub

End Class